using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmMpPositionCommandDtls")]
    public class MpPositionCommandDtls
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "CmdPosDtlsId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public int CmdPosDtlsId { get; set; }

		[ForeignKey("CmdPos")]
		[DataMember, Display(Name = "CmdPosId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public int CmdPosId { get; set; }

		[ForeignKey("Pos")]
		[DataMember, Display(Name = "PosId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public int PosId { get; set; }

		[DataMember, Display(Name = "OldPosRef", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public string OldPosRef { get; set; }

		[DataMember, Display(Name = "NewPosRef", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public string NewPosRef { get; set; }

		[DataMember, Display(Name = "OldPosName", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public string OldPosName { get; set; }

		[DataMember, Display(Name = "NewPosName", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public string NewPosName { get; set; }

		[ForeignKey("OldJobSite")]
		[DataMember, Display(Name = "OldJobSiteId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> OldJobSiteId { get; set; }

		[ForeignKey("NewJobSite")]
		[DataMember, Display(Name = "NewJobSiteId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> NewJobSiteId { get; set; }

		[DataMember, Display(Name = "OldJobSiteName", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public string OldJobSiteName { get; set; }

		[DataMember, Display(Name = "NewJobSiteName", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public string NewJobSiteName { get; set; }

		[ForeignKey("OldField")]
		[DataMember, Display(Name = "OldFieldId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> OldFieldId { get; set; }

		[ForeignKey("NewField")]
		[DataMember, Display(Name = "NewFieldId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> NewFieldId { get; set; }

		[ForeignKey("OldExec")]
		[DataMember, Display(Name = "OldExecId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> OldExecId { get; set; }

		[ForeignKey("NewExec")]
		[DataMember, Display(Name = "NewExecId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> NewExecId { get; set; }

		[ForeignKey("OldPosType")]
		[DataMember, Display(Name = "OldPosTypeId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> OldPosTypeId { get; set; }

		[ForeignKey("NewPosType")]
		[DataMember, Display(Name = "NewPosTypeId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> NewPosTypeId { get; set; }

		[ForeignKey("OldClassSpec")]
		[DataMember, Display(Name = "OldClassSpecId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> OldClassSpecId { get; set; }

		[ForeignKey("NewClassSpec")]
		[DataMember, Display(Name = "NewClassSpecId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> NewClassSpecId { get; set; }

		[DataMember, Display(Name = "OldSalaryQuota", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<double> OldSalaryQuota { get; set; }

		[DataMember, Display(Name = "NewSalaryQuota", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<double> NewSalaryQuota { get; set; }

		[DataMember, Display(Name = "StartDate", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<System.DateTime> StartDate { get; set; }

		[ForeignKey("Move")]
		[DataMember, Display(Name = "MoveId", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> MoveId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MpPositionCommandDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual Position CmdPos { get; set; }

        public virtual Position Pos { get; set; }

		public virtual HRM.JobSite OldJobSite { get; set; }

        public virtual HRM.JobSite NewJobSite { get; set; }

		public virtual FieldPosition OldField { get; set; }

		public virtual FieldPosition NewField { get; set; }

		public virtual ExecutivePosition OldExec { get; set; }

		public virtual ExecutivePosition NewExec { get; set; }

		public virtual MasPositionType OldPosType { get; set; }

		public virtual MasPositionType NewPosType { get; set; }

		public virtual MasClassSpecification OldClassSpec { get; set; }

		public virtual MasClassSpecification NewClassSpec { get; set; }

		public virtual EsMoveRequest Move { get; set; }

    }
}